<?php
/**
 * FileName: CodeServiceProvider.php
 * Author: Fei.Song
 * Date: 2021/5/5 22:41
 * Created by PhpStorm
 * Desc:
 */

namespace App\Providers;

use App\Service\CodeService;
use Illuminate\Support\ServiceProvider;

class CodeServiceProvider extends ServiceProvider {
    /**
     * Register services.
     *
     * @return void
     */
    public function register() {
//        $this->app->singleton('codeService3', function () {
//            return new CodeService();
//        });
        $this->app->bind('codeService', CodeService::class);
    }

    /**
     * Bootstrap services.
     *
     * @return void
     */
    public function boot() {
        //
    }
}
